// JavaScript Document
<!--

	 function next(n){
	 	var seq=getSquence();
	 	var n=seq+n;
	 	if(n<1){
	 			n=1;
	 	}else if(n>3){
	 			n=3;
	 	}
	 	for(i=1;i<4; i++){
	 	 		if(i==n){
	 	 			allUserInfo.tBodies[i].style.display="block";
	 	 		}else{
		 	 		allUserInfo.tBodies[i].style.display="none";
		 	 	}
	   }
	 }
	 function getSquence(){
	 	 for(i=1;i<4; i++){
	 	 		if(allUserInfo.tBodies[i].style.display!="none"){
	 	 			return i;
	 	 		}
	   }
	   return 1;
	 }
	 
	 function moveToRight(from,to){
     var fromObj=document.getElementById(from);
     var toObj=document.getElementById(to);
     var fromOpt = fromObj.options;
     var toOpt = toObj.options;         
     for(var i=0; i<fromOpt.length; i++){
       if(fromOpt[i].selected == true && testOptionValue(fromOpt[i].value,toOpt)){
        	//alert(fromOpt[i].value + "  " + fromOpt[i].text);
          var opt = new Option(fromOpt[i].text,fromOpt[i].value);
          opt.selected = true;
          toOpt.add(opt);
		   }
	  }
  }
  function testOptionValue(value,toOpt){
    for(var i=0;i<toOpt.length;i++){
      if(toOpt[i].value == value){
         return false;
      }else{
         continue;
      }
    }
    return true;
  }

	function moveSelectedOut(from)
	{
		var fromObj=document.getElementById(from);
	  var i,iNum;
	  iNum=fromObj.options.length;
	  var flag=0;
	  for(i=0;i<iNum;i++)
	  {
		flag=0;
	    if(fromObj.options[i].selected)
	    {
			  fromObj.options[i]=null;
			  i--;iNum--;
	    }
	  }
	}

-->